package pl.javarsovia.javarsovia4android.activities;

import pl.javarsovia.R;
import pl.javarsovia.javarsovia4android.domain.Lecture;
import pl.javarsovia.javarsovia4android.util.UIUtils;
import android.app.Activity;
import android.os.Bundle;

public class LectureDetailsActivity extends Activity {

	static final String LECTURE = "lecture";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.lecture_details);
		Lecture lecture = (Lecture) getIntent().getExtras().get(LECTURE);

		UIUtils.fillTextView(this, R.id.lecture_name, lecture.getTitle());
		UIUtils.fillTextView(this, R.id.speaker_name, lecture.getSpeaker().getName());
		UIUtils.fillTextView(this, R.id.room, lecture.getRoom().getName());
		UIUtils.fillTextView(this, R.id.hours, lecture.getSlot().toString());
		UIUtils.fillTextView(this, R.id.lecture_desc, lecture.getDescription());
	}
}
